package com.example.perpetualcalendar.domain.usecase;

import com.example.perpetualcalendar.data.network.SchedulerProvider;
import com.example.perpetualcalendar.domain.entity.History;
import com.example.perpetualcalendar.domain.entity.Joke;
import com.example.perpetualcalendar.domain.repository.ApiHistory;
import com.example.perpetualcalendar.domain.repository.ApiJoke;

import io.reactivex.Observable;

public class HistoryUseCase extends UseCase implements ApiHistory {

    private final ApiHistory apiHistory;

    public HistoryUseCase(SchedulerProvider schedulerProvider, ApiHistory apiHistory) {
        super(schedulerProvider);
        this.apiHistory = apiHistory;
    }

    @Override
    public Observable<History> historyApi() {
        return apiHistory.historyApi();
    }
}
